 
pkgname=asciidoc
pkgver=8.6.9
pkgrel=5
pkgdesc='Text document format for short documents, articles, books and UNIX man pages.'
arch=('x86_64')
url='http://www.methods.co.nz/asciidoc/'
license=('GPL')
depends=('python2' 'libxslt' 'docbook-xsl')
optdepends=('lilypond: music-filter'
            'imagemagick: music-filter (used in conjunction with lilypond)'
            'w3m: text generation')
source=("https://sourceforge.net/projects/asciidoc/files/asciidoc/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=('c59018f105be8d022714b826b0be130a')

build() {
  cd ${pkgname}-${pkgver}

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc
}

package() {
  cd ${pkgname}-${pkgver}

  make install DESTDIR=${pkgdir}

  install -Dm644 asciidocapi.py ${pkgdir}/usr/lib/python2.7/site-packages/asciidocapi.py
  install -Dm644 vim/syntax/asciidoc.vim ${pkgdir}/usr/share/vim/vimfiles/syntax/asciidoc.vim
}
